package com.foreknow.controller;

import com.foreknow.po.Business;
import com.foreknow.po.Food;
import com.foreknow.service.FoodService;
import com.foreknow.service.Impl.FoodServiceImpl;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public class FoodController {

    public Object listFoodByBusinessId(HttpServletRequest request){
        FoodService service = new FoodServiceImpl();
        Integer businessId = Integer.parseInt(request.getParameter("businessId"));
        List<Food> list =service.getBusinessById(businessId);
        return list;
    }
}
